import request from '@/utils/request'

// 查询酒店模块列表
export function listHotes(query) {
  return request({
    url: '/system/hotes/list',
    method: 'get',
    params: query
  })
}

// 查询酒店模块详细
export function getHotes(hotelid) {
  return request({
    url: '/system/hotes/' + hotelid,
    method: 'get'
  })
}

// 新增酒店模块
export function addHotes(data) {
  return request({
    url: '/system/hotes',
    method: 'post',
    data: data
  })
}

// 修改酒店模块
export function updateHotes(data) {
  return request({
    url: '/system/hotes',
    method: 'put',
    data: data
  })
}

// 删除酒店模块
export function delHotes(hotelid) {
  return request({
    url: '/system/hotes/' + hotelid,
    method: 'delete'
  })
}
